home *** CD-ROM | disk | FTP | other *** search
/ Let's Discover North Carolina / Let's Discover North Carolina.iso / pc / FILES / TIME.dxr / 00342_CheckTwister2.ls < prev    next >
Encoding:
Text File  |  2000-12-01  |  979 b   |  36 lines

  1. global guess1, guess2, guess3, right1, right2, right3, twoDone, twistersDone
  2.  
  3. on mouseUp
  4.   if (guess1 = 0) or (guess2 = 0) or (guess3 = 0) then
  5.     sprite(102).visible = 1
  6.   else
  7.     if (guess1 = right1) and (guess2 = right2) and (guess3 = right3) then
  8.       twoDone = 1
  9.       sprite(108).visible = 0
  10.       sprite(111).visible = 1
  11.       twistersDone = twistersDone + 1
  12.       if twistersDone = 1 then
  13.         sprite(104).visible = 1
  14.         sprite(105).visible = 0
  15.         sprite(106).visible = 0
  16.       else
  17.         if twistersDone = 2 then
  18.           sprite(104).visible = 0
  19.           sprite(105).visible = 1
  20.           sprite(106).visible = 0
  21.         else
  22.           sprite(104).visible = 0
  23.           sprite(105).visible = 0
  24.           sprite(106).visible = 1
  25.         end if
  26.       end if
  27.       go(marker("Twister2Congrat"))
  28.     else
  29.       if label(the frame) <> "End Game" then
  30.         puppetSound(3, "WrongOrder")
  31.       end if
  32.       sprite(103).visible = 1
  33.     end if
  34.   end if
  35. end
  36.